import { getTopBanners } from '@/services/recommend';
import { getNews } from '@/services/index';

export const getTopBannerAction = () => {
  return (dispatch) => {
    getTopBanners().then((res) => {
      console.log(res);
    });
  };
};

export const getNewsAction = () => {
  return (dispatch) => {
    getNews().then((res) => {
      console.log(res);
    });
  };
};
